package Data::Conveyor::Template::Factory;

# $Id: Factory.pm 11479 2006-05-22 20:53:17Z gr $

# Factory class for all template classes.

use warnings;
use strict;
use Error::Hierarchy::Util 'assert_defined';
use Class::Scaffold::Exception::Util 'assert_object_type';


our $VERSION = '0.02';


use base 'Class::Scaffold::Factory';


sub gen_handler {
    my ($self, $handler_type, %args) = @_;

    assert_defined $args{ticket}, 'called without ticket.';
    assert_object_type $args{ticket}, 'ticket';

    $self->SUPER::gen_handler($handler_type, [ $args{ticket}->type ], %args);
}


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

{% p.package %} - stage-based conveyor-belt-like ticket handling system

=head1 SYNOPSIS

    {% p.package %}->new;

=head1 DESCRIPTION

None yet. This is an early release; fully functional, but undocumented. The
next release will have more documentation.

=head1 METHODS

=over 4

{% p.write_methods %}

=back

{% p.write_inheritance %}

{% PROCESS standard_pod %}

=cut

